Skip to content

[FIX]base_company_dependent: fix deprecated method#389

Merged
jjscarafia merged 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-runbot
Mar 31, 2026
Merged

[FIX]base_company_dependent: fix deprecated method#389
jjscarafia merged 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-runbot

Conversation

@JrAdhoc
Copy link
Copy Markdown
Contributor

@JrAdhoc JrAdhoc commented Mar 31, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 31, 2026 13:36
@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Este PR corrige compatibilidad con Odoo 19 en el helper base.company.dependent, evitando el uso de APIs/atributos que pueden estar deprecados o no presentes según el tipo de campo/recordset.

Changes:

  • Manejo seguro de field.domain usando getattr(...) y fallback a Domain.TRUE cuando el atributo no existe.
  • Sustitución de check_access_rule("read") por check_access("read") en la validación de acceso al registro.

@jjscarafia jjscarafia merged commit dbbbb8d into ingadhoc:19.0 Mar 31, 2026
4 checks passed
@jjscarafia jjscarafia deleted the 19.0-runbot branch March 31, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants